﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Esanantonio
 */
Cognitum.Cobranza.Pago.Editor = Ext.extend(Karma.EBSimple, {

    initComponent: function(){
        Ext.apply(this, {
            sections: [{
                title: 'Datos generales',
                
                items: [{
                    fieldLabel: 'Importe',
                    name: 'Importe'
                }, {
                    fieldLabel: 'Referencia',
                    name: 'Referencia'
                }, {
                    xtype: 'enum.combo',
                    fieldLabel: 'Tipo',
                    name: 'Tipo',
                    enumName: 'Cognitum.Dominio.Cobranza.TipoPagoEnum'
                }, {
                    fieldLabel: 'Banco',
                    name: 'Banco',
                    entityName: 'Bancos',
                    xtype: 'entity.link'
                }, {
                    xtype: 'datefield',
                    name: 'Fecha',
                    fieldLabel: 'Fecha',
                    disabled: true
                }]
            }]
        });
        
        Cognitum.Cobranza.Pago.Editor.superclass.initComponent.apply(this, arguments);
    }
    
});

Ext.reg('pag.editor', Cognitum.Cobranza.Pago.Editor);
